<?php
$this->breadcrumbs=array(
	'Banner Videoses'=>array('index'),
	'Manage',
);

$this->menu=array(
	array('label'=>'List BannerVideos', 'url'=>array('index')),
	array('label'=>'Create BannerVideos', 'url'=>array('create')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('banner-videos-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h1>Manage Banner Videos</h1>
<div class="link">
<?php echo CHtml::link('Add New Banner Videos',ApplicationConfig::getURL("admin", "bannerVideos", "create"),array()); ?>
</div>
<div class="search-form">
<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?>
</div><!-- search-form -->

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'banner-videos-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'id',
		'title',
		array(
			'name'=>'embed_code',
			'filter'=>false,
			'value'=>'$data->embed_code'
			),
		array(
			'class'=>'CButtonColumn',
			'template'=>'{update}{delete}',
		),
	),
)); ?>
